class Advert {
  String adsImage;
  String adsInfo;
  String adsTitle;
  String createAt;
  int id;
  String tagId;

  Advert(
      {this.adsImage,
        this.adsInfo,
        this.adsTitle,
        this.createAt,
        this.id,
        this.tagId});

  Advert.fromJson(Map<String, dynamic> json) {
    adsImage = json['adsImage'];
    adsInfo = json['adsInfo'];
    adsTitle = json['adsTitle'];
    createAt = json['createAt'];
    id = json['id'];
    tagId = json['tagId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['adsImage'] = this.adsImage;
    data['adsInfo'] = this.adsInfo;
    data['adsTitle'] = this.adsTitle;
    data['createAt'] = this.createAt;
    data['id'] = this.id;
    data['tagId'] = this.tagId;
    return data;
  }
}
